import request from '@/utils/request'

// 查询手术参与人员列表
export function listSurgeryworker(query) {
  return request({
    url: '/manage/surgeryworker/list',
    method: 'get',
    params: query
  })
}

// 查询手术参与人员详细
export function getSurgeryworker(surgeryWorkerId) {
  return request({
    url: '/manage/surgeryworker/' + surgeryWorkerId,
    method: 'get'
  })
}

// 新增手术参与人员
export function addSurgeryworker(data) {
  return request({
    url: '/manage/surgeryworker',
    method: 'post',
    data: data
  })
}

// 修改手术参与人员
export function updateSurgeryworker(data) {
  return request({
    url: '/manage/surgeryworker',
    method: 'put',
    data: data
  })
}

// 删除手术参与人员
export function delSurgeryworker(surgeryWorkerId) {
  return request({
    url: '/manage/surgeryworker/' + surgeryWorkerId,
    method: 'delete'
  })
}
